<template>
  <div class="uotBox">
    <router-link to="petTable" class="crid_item">
      <a>
        <svg class="icon" aria-hidden="true">
          <use xlink:href="#icon-chongwu"></use>
        </svg>
      </a>
      <span>宠物园</span>
    </router-link>
    <router-link to="authorTable" class="crid_item">
      <a>
        <svg class="icon" aria-hidden="true">
          <use xlink:href="#icon-1"></use>
        </svg>
      </a>
      <span>爱宠人士</span>
    </router-link>
    <div class="crid_item">
      <a>
        <svg class="icon" aria-hidden="true">
          <use xlink:href="#icon-fenlei-"></use>
        </svg>
      </a>
      <span>宠物分类</span>
    </div>
  </div>
</template>

<script>
import "@/assets/font_icon/iconfont";
export default {
  name: "TopGrid",
};
</script>

<style scoped lang="less">
.icon {
  width: 2.6em;
  height: 2.6em;
  vertical-align: -0.15em;
  fill: currentColor;
  overflow: hidden;
  border-radius: 50%;
}
.uotBox {
  display: flex;
  justify-content: space-around;
  border-radius: 0.4rem;
  background-color: rgb(255 255 255);
  //border: 1px solid #ffeb00;
}
.crid_item {
  //border: 1px solid red;
  width: 5rem;
  height: 5rem;
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  /*border-radius: 50%;*/
  span {
    font-size: 0.9rem;
    font-weight: bold;
    color: #f4c237;
  }
}
</style>
